package com.team11.server.controller.admin;

import com.team11.server.pojo.P_C_S_T_information;
import com.team11.server.pojo.S_P_Information;
import com.team11.server.service.admin.Admin_Term_SelP_Service;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
@CrossOrigin
@RestController
@Api(tags = "管理员接口")
public class Admin_TermSelP_Controller {
    @Autowired
    private Admin_Term_SelP_Service admin_term_selP_service;
    @ApiOperation("条件查询项目组成员")
    @PostMapping("/Term_SelP")
    public List<P_C_S_T_information> term_selP(S_P_Information s_p_information){
        return admin_term_selP_service.term_selP(s_p_information);
    }
}
